import request from '@/api/request'

export function login(params) {
    return request({
      url: '/admin/login/doLogin',
      method: 'POST',
      params
    })
  }
  
  export function getInfo(token) {
    return request({
      url: '/admin/login/getUserInfo',
      method: 'get',
      params: { token }
    })
  }
  
  export function logout() {
    return request({
      url: '/admin/login/doLogOut',
      method: 'get'
    })
  }
  